package com.zxy.dao.v1;

import com.zxy.entity.v1.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @Description: TODO
 * @Author: zhuxianyu
 * @Date: 2021/12/17 21:15
 * @Version: 1.0
 */
@Repository
public class UserDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void save(User user) {
        jdbcTemplate.update("insert into user values(?,?,?,?,?)",
                user.getUuid(),
                user.getDistinct_id(),
                user.getMobile(),
                user.getEmail(),
                user.getNick_name());
    }
}
